const mongoose = require("mongoose");
const db = require("./db.js");
const userSchema = new mongoose.Schema({
    name: { type: String, required: true },
    password: { type: String, required: true },
    email: { type: String, require: true },
    imgPath: { type: String, required: true },
    date: { type: Date, default: Date.now }
})

const user = db.model("register", userSchema);

module.exports = user;